    <? foreach($gallerydata['images'] as $filename=>$image): ?>
        <div class="vignette <?=buildJson($image)?>" style="background-image:url('<?=$image['thumb_url']?>');" title="<?=$image['caption']?>" ></div>
    <? endforeach; ?>
